package com.example;
import java.util.Scanner;

public class Day2Rank {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("Enter three integers:");
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if(a > b){
            int D = a;
            a = b;
            b = D;
        }
        if(b > c){
            int D = b;
            b = c;
            c = D;
        }
        if(a > b){
            int D = a;
            a = b;
            b = D;
        }
        System.out.println("The sorted numbers are " + a + b + c);
    }
}

